<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>页面未找到 - 404</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #333;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .error-container {
            text-align: center;
            background: white;
            padding: 60px 40px;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            max-width: 500px;
            width: 90%;
        }

        .error-number {
            font-size: 120px;
            font-weight: bold;
            color: #e74c3c;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        .error-title {
            font-size: 24px;
            color: #2c3e50;
            margin-bottom: 15px;
        }

        .error-message {
            color: #666;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .error-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .action-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.3s;
            cursor: pointer;
        }

        .btn-primary {
            background: #3498db;
            color: white;
        }

        .btn-primary:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: #ecf0f1;
            color: #2c3e50;
        }

        .btn-secondary:hover {
            background: #d5dbdb;
            transform: translateY(-2px);
        }

        .error-icon {
            font-size: 60px;
            margin-bottom: 20px;
            opacity: 0.7;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .error-number {
            animation: float 3s ease-in-out infinite;
        }

        .search-hint {
            margin-top: 20px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
            color: #666;
            font-size: 14px;
        }
    </style>
</head>
<body>
<div class="error-container">
    <div class="error-icon">🔍</div>
    <div class="error-number">404</div>
    <h1 class="error-title">页面未找到</h1>
    <p class="error-message">
        抱歉，您要访问的页面不存在或已被删除。<br>
        可能是链接地址有误，或者内容已被移除。
    </p>

    <div class="error-actions">
        <a href="/" class="action-btn btn-primary">返回首页</a>
        <a href="javascript:history.back()" class="action-btn btn-secondary">返回上页</a>
    </div>

    <div class="search-hint">
        💡 提示：您可以使用搜索功能查找相关内容
    </div>
</div>

<script>
    // 可选：自动返回功能
    let countdown = 10;
    function autoRedirect() {
        if (countdown > 0) {
            setTimeout(() => {
                countdown--;
                autoRedirect();
            }, 1000);
        } else {
            // window.location.href = '/';
        }
    }
    // autoRedirect(); // 取消注释可启用自动返回
</script>
</body>
</html>